﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
using System.ServiceProcess;

namespace BuildBox.Server
{
    [RunInstaller(true)]
    public partial class MainInstaller : System.Configuration.Install.Installer
    {
        internal const string ServiceName = "BuildBox Server";

        public MainInstaller()
        {
            InitializeComponent();

            this.serviceInstaller1.DisplayName = ServiceName;
            this.serviceInstaller1.ServiceName = ServiceName;
            this.serviceInstaller1.StartType = ServiceStartMode.Automatic;
            this.serviceProcessInstaller1.Account = ServiceAccount.LocalSystem;
        }
    }
}
